package org.tis.tools.senior.module.developer.entity.enums;

import org.tis.tools.model.enums.BaseEnum;

import java.io.Serializable;

/**
 * description: 代码合并类型
 *
 * @author lijh
 * @date 2018/10/29
 **/
public enum ConflictType implements BaseEnum {

    CONFLICT("conflicted", "代码冲突"),

    TREE_CONFLICT("tree_conflict", "树冲突"),

    CHANGED("changed", "修改的"),

    MERGED("merged", "合并的"),

    UNKNOWN("unknown","新增的"),

    INAPPLICABLE("inapplicable", "删除的");


    private final String value;

    private final String name;

    ConflictType(final String value, final String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Serializable deserialze() {
        return value;
    }

    @Override
    public Serializable getValue() {
        return value;
    }

    @Override
    public String toString() {
        return name;
    }
}
